class AddData < ActiveRecord::Migration
  def self.up
    u = User.create :login => "Tom"
    u.contacts.create :name => "Dick"
    u.contacts.create :name => "Harry"
    
    u = User.create :login => "Foo"
    u.contacts.create :name => "Bar"
  end

  def self.down
    Contact.delete_all
    User.delete_all
  end
end
